<%@ page language="java" import="java.util.*" pageEncoding="Utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>jb-aptech毕业设计项目</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="<%=basePath%>crm_demo/html/css/style.css" rel="stylesheet" type="text/css">
<script src="<%=basePath%>crm_demo/html/script/common.js"></script>
</head>
<body>

<div class="page_title">销售机会管理&nbsp; &gt; 编辑销售机会</div>
<div class="button_bar">
	<button class="common_button" onclick="help('');">帮助</button>
	<button class="common_button" onclick="back();">返回</button>
	<button class="common_button" onclick="updateMar();">保存</button>  
</div>
<form action="../SaveUpDelMarket.action?peram=update" id="update" method="post">
<s:set name="marId"><s:property value="#parameters.marId"/></s:set>
<s:property value="#marId"/>
<table class="query_form_table">
<s:iterator value="#session.marklist" status="index" var="mar" >
<s:if test="marketId==#marId">
	<!--<input name="market.statue" type="hidden" value="<s:property value='statue'/>" />
	--><tr>
		<th>编号</th>
		<td><input name="market.marketId" readonly value="<s:property value='marketId'/>" /></td>
		<th>机会来源</th>
		<td>
			<input name="market.changeSource"  value="<s:property value='changeSource'/>"/></td>
	</tr>
	
	<tr>
		<th>客户名称</th>
		<td><input name="market.cusName"  value="<s:property value='cusName'/>"/><span class="red_star">*</span></td>
		<th>成功机率（%）</th>
		<td><input name="market.odds"  value="<s:property value='odds'/>"/><span class="red_star">*</span></td>
	</tr>	
	<tr>
		<th>概要</th>
		<td colspan="3"><input name="market.outLine"  value="<s:property value='outLine'/>"/><span class="red_star">*</span></td>
	</tr>
	<tr>
		<th>联系人</th>
		<td><input name="market.connPeop"  value="<s:property value='connPeop'/>"/></td>
		<th>联系人电话</th>
		<td><input name="market.connTel"  value="<s:property value='connTel'/>"/></td>
	</tr>
	<tr>
		<th>机会描述</th>
		<td colspan="3"><textarea  rows="6" cols="50" name="market.describe" ><s:property value="describe"/></textarea><span class="red_star">*</span></td>
	</tr>
	<tr>
		<th>创建人</th>
		<td><input name="market.createManager" readonly value="<s:property value='createManager'/>"/><span class="red_star">*</span></td>
		<th>创建时间</th>
		<td><input name="market.createDate" readonly value="<s:property value='createDate'/>"/><span class="red_star">*</span></td>
	</tr>
</s:if>
</s:iterator>
</table>
</form>
<br />
<table disabled class="query_form_table" id="table1">
	<tr>
		<th>指派给</th>
		<input name="market.createDate" readonly value="<s:property value='createDate'/>"/>
		<td>
			<select name="D1">
				<option>请选择...</option>
				<option>小明</option>
				<option>旺财</option>
				<option>球球</option>
				<option>孙小美</option>
				<option>周洁轮</option>
			</select> <span class="red_star">*</span></td>
		<th>指派时间</th>
		<td>
		<input name="market.createDate" readonly value="<s:property value='createDate'/>"/>
			<input id="t2" name="T20" readonly size="20" /><span class="red_star">*</span></td>
	</tr>
</table>
<script>
	setCurTime('t1');
	setCurTime('t2');
	function updateMar(){
	alert(document.getElementById("update").url);
	alert(document.getElementById("update").action);
	document.getElementById("update").submit();
	}
</script>
</body>
</html>